import request from "@/utils/request";

/**
 * 获取数据统计数据
 * @returns {Promise<DashBoardVO>} 返回数据统计数据
 */
export function getDashBoard() {
  return request({
    url: "/dashboard",
    method: "get",
  });
}

/**
 * 获取图表统计数据
 * @returns {Promise<DashBoardChartVO>} 返回数据统计数据
 */
export function getDashBoardChart() {
  return request({
    url: "/dashboard/chart",
    method: "get",
  });
}

export default {
  getDashBoard,
  getDashBoardChart,
};
